//
//  LoginAndRegister.h
//  Comma
//
//  Created by 刘轩博 on 15/1/17.
//  Copyright (c) 2015年 lanou3g.com 蓝鸥科技. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "GlobalMacro.h"
@interface LoginAndRegister : UIView<UITextFieldDelegate>

/*左上, 右上Button*/
@property (nonatomic, strong) UIButton *leftUpButton;
@property (nonatomic, strong) UIButton *rightUpButton;

/*上中下TextField*/
@property (nonatomic, strong) UITextField *upTextField;
@property (nonatomic, strong) UITextField *centerTextField;
@property (nonatomic, strong) UITextField *downTextField;

/*上中下Button*/
@property (nonatomic, strong) UIButton *upButton;
@property (nonatomic, strong) UIButton *centerButton;
@property (nonatomic, strong) UIButton *downButton;

/*居中Button*/
@property (nonatomic, strong) UIButton *centerDownButton;

/*首页登录&注册Button*/
@property (nonatomic, strong) UIButton *registButton;
@property (nonatomic, strong) UIButton *loginButton;


@property (nonatomic, strong)UITextField * editingTextField;
@property (nonatomic, assign)CGFloat keyBoardHeight;
@property (nonatomic) BOOL viewDidChange;
@property (nonatomic) BOOL keyBoardDidShow;



- (instancetype)initWithLeftUpButton:(NSString *)leftUpButton 
                       rightUpButton:(NSString *)rightUpButton upTextField:(NSString *)upTextField
                     centerTextField:(NSString *)centerTextField
                       downTextField:(NSString *)downTextField 
                            upButton:(NSString *)upButton 
                        centerButton:(NSString *)centerButton
                          downButton:(NSString *)downButton
                    centerDownButton:(NSString *)centerDownButton;


- (void)createRegisterButton;
- (void)createLoginButton;

- (void)createCenterButtonWithTitle:(NSString *)title;


+ (void)drawLineWithStartPoint:(CGPoint)startPoint size:(CGSize)size inView:(UIView *)inView;

/*按钮点击事件*/
@end
